package com.xinxin.o2o.controller.user;

import com.xinxin.o2o.response.Response;
import com.xinxin.o2o.util.ResponseUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @author 史鑫鑫
 * @date 2019-08-19 0:41
 */
@RestController("/api/user")
public class UserController {

    @PostMapping("/register")
    public Response register() {
        return ResponseUtil.success();
    }
    /**
     * 登录
     *
     * @param session session
     * @return 登录结果
     */
    @PostMapping("/login")
    public Response login(HttpSession session) {
        return ResponseUtil.success();
    }

    /**
     * 获取用户信息
     *
     * @param session session
     * @return 用户信息
     */
    @GetMapping("/getUserInfo")
    public Response getUserInfo(HttpSession session) {
        return ResponseUtil.success();
    }
}
